var bmi_female_3rd = [
    [24, 14.1473467],
    [24.5, 14.13226271],
    [25.5, 14.10240814],
    [26.5, 14.07297394],
    [27.5, 14.04396337],
    [28.5, 14.01538008],
    [29.5, 13.98722569],
    [30.5, 13.95950246],
    [31.5, 13.93221207],
    [32.5, 13.90535562],
    [33.5, 13.87893492],
    [34.5, 13.852951],
    [35.5, 13.82740517],
    [36.5, 13.80229888],
    [37.5, 13.77763382],
    [38.5, 13.75341201],
    [39.5, 13.72963586],
    [40.5, 13.70630824],
    [41.5, 13.68343254],
    [42.5, 13.66101266],
    [43.5, 13.63905306],
    [44.5, 13.61755872],
    [45.5, 13.59653518],
    [46.5, 13.57598804],
    [47.5, 13.55592455],
    [48.5, 13.53635124],
    [49.5, 13.51727537],
    [50.5, 13.49870449],
    [51.5, 13.48064637],
    [52.5, 13.46310899],
    [53.5, 13.44610041],
    [54.5, 13.42962877],
    [55.5, 13.41370222],
    [56.5, 13.39832882],
    [57.5, 13.38351658],
    [58.5, 13.36927334],
    [59.5, 13.35560679],
    [60.5, 13.34252439],
    [61.5, 13.33003322],
    [62.5, 13.31814053],
    [63.5, 13.3068531],
    [64.5, 13.29617673],
    [65.5, 13.28611805],
    [66.5, 13.27668282],
    [67.5, 13.26787651],
    [68.5, 13.25970423],
    [69.5, 13.25217076],
    [70.5, 13.24528055],
    [71.5, 13.23903773],
    [72.5, 13.23344678],
    [73.5, 13.22851054],
    [74.5, 13.22423251],
    [75.5, 13.22061564],
    [76.5, 13.21766256],
    [77.5, 13.21537563],
    [78.5, 13.2137569],
    [79.5, 13.21280815],
    [80.5, 13.21253087],
    [81.5, 13.2129263],
    [82.5, 13.21399541],
    [83.5, 13.2157389],
    [84.5, 13.21815723],
    [85.5, 13.22125062],
    [86.5, 13.22501902],
    [87.5, 13.22946217],
    [88.5, 13.23457958],
    [89.5, 13.24037052],
    [90.5, 13.24683405],
    [91.5, 13.25396902],
    [92.5, 13.26177409],
    [93.5, 13.27024769],
    [94.5, 13.27938808],
    [95.5, 13.28919334],
    [96.5, 13.2996613],
    [97.5, 13.31078904],
    [98.5, 13.32257456],
    [99.5, 13.33501512],
    [100.5, 13.34810726],
    [101.5, 13.36184843],
    [102.5, 13.37623516],
    [103.5, 13.39126329],
    [104.5, 13.40693007],
    [105.5, 13.42323134],
    [106.5, 13.44016315],
    [107.5, 13.45772088],
    [108.5, 13.47590046],
    [109.5, 13.49469797],
    [110.5, 13.51410735],
    [111.5, 13.53412476],
    [112.5, 13.55474487],
    [113.5, 13.5759628],
    [114.5, 13.59777181],
    [115.5, 13.62016849],
    [116.5, 13.64314567],
    [117.5, 13.66669786],
    [118.5, 13.69081905],
    [119.5, 13.71550304],
    [120.5, 13.7407435],
    [121.5, 13.7665339],
    [122.5, 13.79286758],
    [123.5, 13.81973772],
    [124.5, 13.84713731],
    [125.5, 13.87505922],
    [126.5, 13.90349614],
    [127.5, 13.9324406],
    [128.5, 13.96188497],
    [129.5, 13.99182148],
    [130.5, 14.02224218],
    [131.5, 14.05313898],
    [132.5, 14.0845036],
    [133.5, 14.11632765],
    [134.5, 14.14860307],
    [135.5, 14.18132032],
    [136.5, 14.21447084],
    [137.5, 14.24804556],
    [138.5, 14.28203528],
    [139.5, 14.31643062],
    [140.5, 14.35122206],
    [141.5, 14.3863999],
    [142.5, 14.42195429],
    [143.5, 14.45787522],
    [144.5, 14.4941525],
    [145.5, 14.53077581],
    [146.5, 14.56773463],
    [147.5, 14.6050183],
    [148.5, 14.64261599],
    [149.5, 14.68051671],
    [150.5, 14.7187093],
    [151.5, 14.75718241],
    [152.5, 14.79592458],
    [153.5, 14.83492412],
    [154.5, 14.87416922],
    [155.5, 14.91364786],
    [156.5, 14.95334789],
    [157.5, 14.99325696],
    [158.5, 15.03336257],
    [159.5, 15.07365202],
    [160.5, 15.11411246],
    [161.5, 15.15473086],
    [162.5, 15.19549401],
    [163.5, 15.23638853],
    [164.5, 15.27740086],
    [165.5, 15.31851726],
    [166.5, 15.35972381],
    [167.5, 15.40100642],
    [168.5, 15.44235082],
    [169.5, 15.48374254],
    [170.5, 15.52516693],
    [171.5, 15.56660919],
    [172.5, 15.60805429],
    [173.5, 15.64948704],
    [174.5, 15.69089206],
    [175.5, 15.73225378],
    [176.5, 15.77355644],
    [177.5, 15.8147841],
    [178.5, 15.85592062],
    [179.5, 15.89694967],
    [180.5, 15.93785473],
    [181.5, 15.97861909],
    [182.5, 16.01922586],
    [183.5, 16.05965792],
    [184.5, 16.09989799],
    [185.5, 16.13992859],
    [186.5, 16.17973203],
    [187.5, 16.21929043],
    [188.5, 16.25858573],
    [189.5, 16.29759966],
    [190.5, 16.33631375],
    [191.5, 16.37470935],
    [192.5, 16.4127676],
    [193.5, 16.45046946],
    [194.5, 16.48779567],
    [195.5, 16.52472682],
    [196.5, 16.56124326],
    [197.5, 16.59732518],
    [198.5, 16.63295257],
    [199.5, 16.6681059],
    [200.5, 16.70276277],
    [201.5, 16.73690461],
    [202.5, 16.77050999],
    [203.5, 16.80355796],
    [204.5, 16.83602739],
    [205.5, 16.86789789],
    [206.5, 16.89914528],
    [207.5, 16.92975012],
    [208.5, 16.95969079],
    [209.5, 16.98894397],
    [210.5, 17.01748828],
    [211.5, 17.0453012],
    [212.5, 17.07236026],
    [213.5, 17.09864412],
    [214.5, 17.12412619],
    [215.5, 17.14878634],
    [216.5, 17.17260194],
    [217.5, 17.19554744],
    [218.5, 17.21760352],
    [219.5, 17.23874246],
    [220.5, 17.25894211],
    [221.5, 17.2781787],
    [222.5, 17.29642829],
    [223.5, 17.31366688],
    [224.5, 17.32987032],
    [225.5, 17.34501435],
    [226.5, 17.35907462],
    [227.5, 17.37202667],
    [228.5, 17.38384594],
    [229.5, 17.39450778],
    [230.5, 17.40398745],
    [231.5, 17.41226013],
    [232.5, 17.41930091],
    [233.5, 17.42508482],
    [234.5, 17.42958448],
    [235.5, 17.43278087],
    [236.5, 17.43464513],
    [237.5, 17.43515168],
    [238.5, 17.43427465],
    [239.5, 17.43198786],
    [240, 17.43031075],
    [240.5, 17.42826863]

];

var bmi_female_5th = [
    [24, 14.39787089],
    [24.5, 14.3801866],
    [25.5, 14.34527262],
    [26.5, 14.31096806],
    [27.5, 14.27727686],
    [28.5, 14.24420303],
    [29.5, 14.21174909],
    [30.5, 14.17991775],
    [31.5, 14.14871111],
    [32.5, 14.11813062],
    [33.5, 14.08817793],
    [34.5, 14.0588539],
    [35.5, 14.03015932],
    [36.5, 14.00209476],
    [37.5, 13.97466073],
    [38.5, 13.94785767],
    [39.5, 13.92168608],
    [40.5, 13.89614655],
    [41.5, 13.87123981],
    [42.5, 13.84696678],
    [43.5, 13.82332865],
    [44.5, 13.80032682],
    [45.5, 13.77796299],
    [46.5, 13.75623885],
    [47.5, 13.73515717],
    [48.5, 13.71472021],
    [49.5, 13.6949307],
    [50.5, 13.67579162],
    [51.5, 13.65730608],
    [52.5, 13.63947739],
    [53.5, 13.62230894],
    [54.5, 13.60580421],
    [55.5, 13.58996673],
    [56.5, 13.57480002],
    [57.5, 13.56030761],
    [58.5, 13.54649295],
    [59.5, 13.53335941],
    [60.5, 13.52091027],
    [61.5, 13.50914853],
    [62.5, 13.4980774],
    [63.5, 13.48769977],
    [64.5, 13.47801782],
    [65.5, 13.4690344],
    [66.5, 13.46075175],
    [67.5, 13.45317191],
    [68.5, 13.44629667],
    [69.5, 13.44012761],
    [70.5, 13.43466608],
    [71.5, 13.42991321],
    [72.5, 13.42587042],
    [73.5, 13.42253788],
    [74.5, 13.41991629],
    [75.5, 13.41800595],
    [76.5, 13.41680692],
    [77.5, 13.41631905],
    [78.5, 13.41654198],
    [79.5, 13.41747514],
    [80.5, 13.41911775],
    [81.5, 13.42146884],
    [82.5, 13.42452722],
    [83.5, 13.42829152],
    [84.5, 13.43276016],
    [85.5, 13.43793139],
    [86.5, 13.44380325],
    [87.5, 13.45037362],
    [88.5, 13.45764018],
    [89.5, 13.46560044],
    [90.5, 13.47425174],
    [91.5, 13.48359125],
    [92.5, 13.49361598],
    [93.5, 13.50432278],
    [94.5, 13.51570835],
    [95.5, 13.52776922],
    [96.5, 13.54050176],
    [97.5, 13.55390172],
    [98.5, 13.56796556],
    [99.5, 13.58268918],
    [100.5, 13.59806788],
    [101.5, 13.61409768],
    [102.5, 13.63077388],
    [103.5, 13.6480912],
    [104.5, 13.6660455],
    [105.5, 13.68463148],
    [106.5, 13.70384401],
    [107.5, 13.72367745],
    [108.5, 13.74412656],
    [109.5, 13.7651862],
    [110.5, 13.78684956],
    [111.5, 13.80911155],
    [112.5, 13.83196589],
    [113.5, 13.85540667],
    [114.5, 13.87942647],
    [115.5, 13.90402053],
    [116.5, 13.92918106],
    [117.5, 13.95490163],
    [118.5, 13.98117536],
    [119.5, 14.00799522],
    [120.5, 14.03535405],
    [121.5, 14.06324456],
    [122.5, 14.0916593],
    [123.5, 14.12059071],
    [124.5, 14.15003106],
    [125.5, 14.17997251],
    [126.5, 14.21040706],
    [127.5, 14.2413266],
    [128.5, 14.27272286],
    [129.5, 14.30458743],
    [130.5, 14.33691178],
    [131.5, 14.36968723],
    [132.5, 14.40290497],
    [133.5, 14.43655605],
    [134.5, 14.47063181],
    [135.5, 14.50512237],
    [136.5, 14.54001862],
    [137.5, 14.57531107],
    [138.5, 14.61099007],
    [139.5, 14.64704584],
    [140.5, 14.68346846],
    [141.5, 14.72024789],
    [142.5, 14.75737391],
    [143.5, 14.7948362],
    [144.5, 14.83262428],
    [145.5, 14.87072753],
    [146.5, 14.90913518],
    [147.5, 14.94783635],
    [148.5, 14.98681999],
    [149.5, 15.0260749],
    [150.5, 15.06558978],
    [151.5, 15.10535314],
    [152.5, 15.14535337],
    [153.5, 15.18557871],
    [154.5, 15.22601726],
    [155.5, 15.26665697],
    [156.5, 15.30748565],
    [157.5, 15.34849095],
    [158.5, 15.38966039],
    [159.5, 15.43098133],
    [160.5, 15.47244099],
    [161.5, 15.51402643],
    [162.5, 15.55572457],
    [163.5, 15.59752218],
    [164.5, 15.63940588],
    [165.5, 15.68136213],
    [166.5, 15.72337724],
    [167.5, 15.76543738],
    [168.5, 15.80752854],
    [169.5, 15.84963659],
    [170.5, 15.89174721],
    [171.5, 15.93384595],
    [172.5, 15.97591819],
    [173.5, 16.01794916],
    [174.5, 16.05992392],
    [175.5, 16.10182739],
    [176.5, 16.14364432],
    [177.5, 16.1853593],
    [178.5, 16.22695676],
    [179.5, 16.26842096],
    [180.5, 16.30973602],
    [181.5, 16.35088587],
    [182.5, 16.3918543],
    [183.5, 16.43262492],
    [184.5, 16.47318119],
    [185.5, 16.5135064],
    [186.5, 16.55358366],
    [187.5, 16.59339594],
    [188.5, 16.63292602],
    [189.5, 16.67215653],
    [190.5, 16.71106993],
    [191.5, 16.74964852],
    [192.5, 16.78787442],
    [193.5, 16.82572959],
    [194.5, 16.86319583],
    [195.5, 16.90025476],
    [196.5, 16.93688787],
    [197.5, 16.97307644],
    [198.5, 17.00880162],
    [199.5, 17.04404492],
    [200.5, 17.07878553],
    [201.5, 17.11300574],
    [202.5, 17.14668547],
    [203.5, 17.17980508],
    [204.5, 17.21234472],
    [205.5, 17.24428517],
    [206.5, 17.27560407],
    [207.5, 17.30628297],
    [208.5, 17.33630159],
    [209.5, 17.36563825],
    [210.5, 17.39427286],
    [211.5, 17.42218439],
    [212.5, 17.44935184],
    [213.5, 17.47575509],
    [214.5, 17.50136974],
    [215.5, 17.52617667],
    [216.5, 17.55015468],
    [217.5, 17.57328018],
    [218.5, 17.59553468],
    [219.5, 17.61689275],
    [220.5, 17.63733356],
    [221.5, 17.6568349],
    [222.5, 17.67537444],
    [223.5, 17.69292976],
    [224.5, 17.70947829],
    [225.5, 17.72499741],
    [226.5, 17.73946435],
    [227.5, 17.75285625],
    [228.5, 17.76515018],
    [229.5, 17.77632308],
    [230.5, 17.78635182],
    [231.5, 17.79521318],
    [232.5, 17.80288385],
    [233.5, 17.80934044],
    [234.5, 17.81455755],
    [235.5, 17.81851675],
    [236.5, 17.82119134],
    [237.5, 17.82255737],
    [238.5, 17.8225906],
    [239.5, 17.82126653],
    [240, 17.82009046],
    [240.5, 17.81856356]

];

var bmi_female_10th = [
    [24, 14.80134054],
    [24.5, 14.77964811],
    [25.5, 14.73694628],
    [26.5, 14.6951581],
    [27.5, 14.65428696],
    [28.5, 14.61433601],
    [29.5, 14.57530775],
    [30.5, 14.53720437],
    [31.5, 14.50002752],
    [32.5, 14.46377827],
    [33.5, 14.42845728],
    [34.5, 14.39406456],
    [35.5, 14.36059959],
    [36.5, 14.32806133],
    [37.5, 14.29644823],
    [38.5, 14.26575827],
    [39.5, 14.23598902],
    [40.5, 14.20713766],
    [41.5, 14.17920105],
    [42.5, 14.15217581],
    [43.5, 14.12605833],
    [44.5, 14.10084485],
    [45.5, 14.07653151],
    [46.5, 14.05311425],
    [47.5, 14.03058936],
    [48.5, 14.00895279],
    [49.5, 13.98820066],
    [50.5, 13.96832912],
    [51.5, 13.94933441],
    [52.5, 13.93121283],
    [53.5, 13.91396079],
    [54.5, 13.89757474],
    [55.5, 13.88205123],
    [56.5, 13.8673869],
    [57.5, 13.8535784],
    [58.5, 13.84062247],
    [59.5, 13.82851587],
    [60.5, 13.81725538],
    [61.5, 13.80683773],
    [62.5, 13.79725982],
    [63.5, 13.78851848],
    [64.5, 13.78061022],
    [65.5, 13.77353197],
    [66.5, 13.76728041],
    [67.5, 13.76185216],
    [68.5, 13.75724378],
    [69.5, 13.75345175],
    [70.5, 13.75047248],
    [71.5, 13.74830229],
    [72.5, 13.74693776],
    [73.5, 13.74637473],
    [74.5, 13.74660941],
    [75.5, 13.74763782],
    [76.5, 13.74945586],
    [77.5, 13.75205934],
    [78.5, 13.75544399],
    [79.5, 13.7596054],
    [80.5, 13.76453911],
    [81.5, 13.7702405],
    [82.5, 13.77670491],
    [83.5, 13.78392751],
    [84.5, 13.79190343],
    [85.5, 13.80062765],
    [86.5, 13.81009508],
    [87.5, 13.82030049],
    [88.5, 13.83123858],
    [89.5, 13.84290393],
    [90.5, 13.85529103],
    [91.5, 13.86839426],
    [92.5, 13.8822079],
    [93.5, 13.89672614],
    [94.5, 13.91194308],
    [95.5, 13.9278527],
    [96.5, 13.9444489],
    [97.5, 13.96172519],
    [98.5, 13.97967549],
    [99.5, 13.99829338],
    [100.5, 14.01757212],
    [101.5, 14.0375053],
    [102.5, 14.05808613],
    [103.5, 14.07930747],
    [104.5, 14.1011628],
    [105.5, 14.12364494],
    [106.5, 14.1467468],
    [107.5, 14.17046092],
    [108.5, 14.19478013],
    [109.5, 14.21969726],
    [110.5, 14.24520415],
    [111.5, 14.27129365],
    [112.5, 14.29795787],
    [113.5, 14.32518913],
    [114.5, 14.35297886],
    [115.5, 14.38132004],
    [116.5, 14.4102038],
    [117.5, 14.43962209],
    [118.5, 14.46956659],
    [119.5, 14.50002883],
    [120.5, 14.5310003],
    [121.5, 14.56247234],
    [122.5, 14.59443621],
    [123.5, 14.62688307],
    [124.5, 14.65980398],
    [125.5, 14.69318989],
    [126.5, 14.72703166],
    [127.5, 14.76132003],
    [128.5, 14.79604567],
    [129.5, 14.83119912],
    [130.5, 14.86677084],
    [131.5, 14.90275116],
    [132.5, 14.93913036],
    [133.5, 14.97589856],
    [134.5, 15.01304607],
    [135.5, 15.05056245],
    [136.5, 15.08843769],
    [137.5, 15.12666154],
    [138.5, 15.16522362],
    [139.5, 15.20411349],
    [140.5, 15.24332057],
    [141.5, 15.28283421],
    [142.5, 15.32264362],
    [143.5, 15.36273794],
    [144.5, 15.40310619],
    [145.5, 15.44373731],
    [146.5, 15.4846201],
    [147.5, 15.52574328],
    [148.5, 15.56709547],
    [149.5, 15.60866519],
    [150.5, 15.65044083],
    [151.5, 15.6924107],
    [152.5, 15.734563],
    [153.5, 15.77688582],
    [154.5, 15.81936717],
    [155.5, 15.86199492],
    [156.5, 15.90475685],
    [157.5, 15.94764066],
    [158.5, 15.9906339],
    [159.5, 16.03372404],
    [160.5, 16.07689846],
    [161.5, 16.1201444],
    [162.5, 16.16344901],
    [163.5, 16.20679934],
    [164.5, 16.25018232],
    [165.5, 16.2935848],
    [166.5, 16.33699348],
    [167.5, 16.38039498],
    [168.5, 16.42377582],
    [169.5, 16.46712239],
    [170.5, 16.51042098],
    [171.5, 16.55365778],
    [172.5, 16.59681886],
    [173.5, 16.63989017],
    [174.5, 16.68285759],
    [175.5, 16.72570683],
    [176.5, 16.76842355],
    [177.5, 16.81099326],
    [178.5, 16.85340136],
    [179.5, 16.89563315],
    [180.5, 16.93767383],
    [181.5, 16.97950845],
    [182.5, 17.02112198],
    [183.5, 17.06249925],
    [184.5, 17.10362501],
    [185.5, 17.14448385],
    [186.5, 17.18506029],
    [187.5, 17.22533871],
    [188.5, 17.26530336],
    [189.5, 17.30493841],
    [190.5, 17.34422789],
    [191.5, 17.38315572],
    [192.5, 17.4217057],
    [193.5, 17.4598615],
    [194.5, 17.49760671],
    [195.5, 17.53492476],
    [196.5, 17.57179899],
    [197.5, 17.60821261],
    [198.5, 17.64414872],
    [199.5, 17.67959061],
    [200.5, 17.71452019],
    [201.5, 17.74892115],
    [202.5, 17.78277581],
    [203.5, 17.81606667],
    [204.5, 17.8487761],
    [205.5, 17.88088689],
    [206.5, 17.91237975],
    [207.5, 17.9432379],
    [208.5, 17.97344339],
    [209.5, 18.00297732],
    [210.5, 18.03182181],
    [211.5, 18.05995835],
    [212.5, 18.08736842],
    [213.5, 18.11403409],
    [214.5, 18.13993458],
    [215.5, 18.16505254],
    [216.5, 18.18936927],
    [217.5, 18.21286444],
    [218.5, 18.23552108],
    [219.5, 18.25731763],
    [220.5, 18.27823552],
    [221.5, 18.29825524],
    [222.5, 18.31735722],
    [223.5, 18.33552175],
    [224.5, 18.35272903],
    [225.5, 18.36895919],
    [226.5, 18.38419225],
    [227.5, 18.39840811],
    [228.5, 18.41158663],
    [229.5, 18.42370753],
    [230.5, 18.43475047],
    [231.5, 18.44469501],
    [232.5, 18.45352064],
    [233.5, 18.46120675],
    [234.5, 18.46773133],
    [235.5, 18.47307706],
    [236.5, 18.47722102],
    [237.5, 18.48014209],
    [238.5, 18.48181892],
    [239.5, 18.48222995],
    [240, 18.48195582],
    [240.5, 18.48135557]

];

var bmi_female_25th = [
    [24, 15.52807587],
    [24.5, 15.49975639],
    [25.5, 15.44421901],
    [26.5, 15.39014846],
    [27.5, 15.33754218],
    [28.5, 15.28639717],
    [29.5, 15.23671134],
    [30.5, 15.18848189],
    [31.5, 15.14170598],
    [32.5, 15.09638064],
    [33.5, 15.05250203],
    [34.5, 15.01006617],
    [35.5, 14.96906838],
    [36.5, 14.92950329],
    [37.5, 14.89136478],
    [38.5, 14.85464591],
    [39.5, 14.81933896],
    [40.5, 14.78543535],
    [41.5, 14.75292568],
    [42.5, 14.72179977],
    [43.5, 14.69204668],
    [44.5, 14.6636548],
    [45.5, 14.63661186],
    [46.5, 14.61090523],
    [47.5, 14.58652134],
    [48.5, 14.56344665],
    [49.5, 14.54166718],
    [50.5, 14.52116867],
    [51.5, 14.50193674],
    [52.5, 14.48395686],
    [53.5, 14.46721445],
    [54.5, 14.45169495],
    [55.5, 14.4373838],
    [56.5, 14.42426656],
    [57.5, 14.41232886],
    [58.5, 14.40155647],
    [59.5, 14.39193532],
    [60.5, 14.38345148],
    [61.5, 14.37609125],
    [62.5, 14.36984096],
    [63.5, 14.3646872],
    [64.5, 14.3606169],
    [65.5, 14.35761687],
    [66.5, 14.35567422],
    [67.5, 14.35477623],
    [68.5, 14.35491035],
    [69.5, 14.35606415],
    [70.5, 14.35822537],
    [71.5, 14.36138186],
    [72.5, 14.36552155],
    [73.5, 14.37063258],
    [74.5, 14.37670312],
    [75.5, 14.38372148],
    [76.5, 14.39167606],
    [77.5, 14.40055533],
    [78.5, 14.41034784],
    [79.5, 14.42104223],
    [80.5, 14.43262719],
    [81.5, 14.44509148],
    [82.5, 14.4584239],
    [83.5, 14.4726133],
    [84.5, 14.48764859],
    [85.5, 14.50351871],
    [86.5, 14.52021262],
    [87.5, 14.53771933],
    [88.5, 14.55602787],
    [89.5, 14.57512728],
    [90.5, 14.59500664],
    [91.5, 14.61565502],
    [92.5, 14.63706153],
    [93.5, 14.65921526],
    [94.5, 14.68210532],
    [95.5, 14.70572083],
    [96.5, 14.7300509],
    [97.5, 14.75508471],
    [98.5, 14.78081132],
    [99.5, 14.80721981],
    [100.5, 14.83429943],
    [101.5, 14.86203913],
    [102.5, 14.89042805],
    [103.5, 14.91945533],
    [104.5, 14.94910996],
    [105.5, 14.97938101],
    [106.5, 15.01025752],
    [107.5, 15.04172856],
    [108.5, 15.0737831],
    [109.5, 15.10641007],
    [110.5, 15.13959859],
    [111.5, 15.17333749],
    [112.5, 15.20761574],
    [113.5, 15.24242219],
    [114.5, 15.27774591],
    [115.5, 15.31357557],
    [116.5, 15.34990008],
    [117.5, 15.38670828],
    [118.5, 15.42398894],
    [119.5, 15.46173083],
    [120.5, 15.49992271],
    [121.5, 15.53855329],
    [122.5, 15.57761127],
    [123.5, 15.61708531],
    [124.5, 15.65696405],
    [125.5, 15.69723611],
    [126.5, 15.73789008],
    [127.5, 15.77891452],
    [128.5, 15.82029796],
    [129.5, 15.86202891],
    [130.5, 15.90409584],
    [131.5, 15.94648722],
    [132.5, 15.98919146],
    [133.5, 16.03219696],
    [134.5, 16.07549205],
    [135.5, 16.11906513],
    [136.5, 16.1629045],
    [137.5, 16.20699844],
    [138.5, 16.25133521],
    [139.5, 16.29590305],
    [140.5, 16.34069017],
    [141.5, 16.38568475],
    [142.5, 16.43087493],
    [143.5, 16.47624886],
    [144.5, 16.52179463],
    [145.5, 16.56750033],
    [146.5, 16.61335399],
    [147.5, 16.65934366],
    [148.5, 16.70545732],
    [149.5, 16.75168297],
    [150.5, 16.79800855],
    [151.5, 16.844422],
    [152.5, 16.89091121],
    [153.5, 16.93746408],
    [154.5, 16.98406846],
    [155.5, 17.0307122],
    [156.5, 17.07738309],
    [157.5, 17.12406895],
    [158.5, 17.17075754],
    [159.5, 17.21743662],
    [160.5, 17.2640939],
    [161.5, 17.31071712],
    [162.5, 17.35729394],
    [163.5, 17.40381205],
    [164.5, 17.45025909],
    [165.5, 17.4966227],
    [166.5, 17.54289048],
    [167.5, 17.58905003],
    [168.5, 17.63508894],
    [169.5, 17.68099474],
    [170.5, 17.72675499],
    [171.5, 17.7723572],
    [172.5, 17.81778887],
    [173.5, 17.86303751],
    [174.5, 17.90809056],
    [175.5, 17.95293549],
    [176.5, 17.99755974],
    [177.5, 18.04195071],
    [178.5, 18.08609581],
    [179.5, 18.12998242],
    [180.5, 18.17359792],
    [181.5, 18.21692964],
    [182.5, 18.25996492],
    [183.5, 18.30269107],
    [184.5, 18.34509539],
    [185.5, 18.38716515],
    [186.5, 18.42888762],
    [187.5, 18.47025003],
    [188.5, 18.5112396],
    [189.5, 18.55184353],
    [190.5, 18.592049],
    [191.5, 18.63184317],
    [192.5, 18.67121316],
    [193.5, 18.7101461],
    [194.5, 18.74862906],
    [195.5, 18.78664912],
    [196.5, 18.82419331],
    [197.5, 18.86124863],
    [198.5, 18.89780209],
    [199.5, 18.93384056],
    [200.5, 18.96935117],
    [201.5, 19.00432062],
    [202.5, 19.03873583],
    [203.5, 19.07258364],
    [204.5, 19.10585083],
    [205.5, 19.13852417],
    [206.5, 19.1705904],
    [207.5, 19.20203617],
    [208.5, 19.23284815],
    [209.5, 19.26301292],
    [210.5, 19.29251705],
    [211.5, 19.32134706],
    [212.5, 19.34948942],
    [213.5, 19.37693055],
    [214.5, 19.4036568],
    [215.5, 19.4296545],
    [216.5, 19.45490996],
    [217.5, 19.47940934],
    [218.5, 19.50313889],
    [219.5, 19.52608462],
    [220.5, 19.54823263],
    [221.5, 19.5695689],
    [222.5, 19.59007937],
    [223.5, 19.60974989],
    [224.5, 19.62856629],
    [225.5, 19.64651429],
    [226.5, 19.66357958],
    [227.5, 19.67974776],
    [228.5, 19.69500438],
    [229.5, 19.70933491],
    [230.5, 19.72272474],
    [231.5, 19.73515921],
    [232.5, 19.74662357],
    [233.5, 19.757103],
    [234.5, 19.76658246],
    [235.5, 19.77504736],
    [236.5, 19.78248242],
    [237.5, 19.78887249],
    [238.5, 19.79420232],
    [239.5, 19.79845655],
    [240, 19.80017572],
    [240.5, 19.80161999]

];

var bmi_female_50th = [
    [24, 16.42339664],
    [24.5, 16.38804056],
    [25.5, 16.3189719],
    [26.5, 16.25207985],
    [27.5, 16.18734669],
    [28.5, 16.12475448],
    [29.5, 16.06428762],
    [30.5, 16.00593001],
    [31.5, 15.94966631],
    [32.5, 15.89548197],
    [33.5, 15.84336179],
    [34.5, 15.79329146],
    [35.5, 15.7452564],
    [36.5, 15.69924188],
    [37.5, 15.65523282],
    [38.5, 15.61321371],
    [39.5, 15.57316843],
    [40.5, 15.53508019],
    [41.5, 15.49893145],
    [42.5, 15.46470384],
    [43.5, 15.43237817],
    [44.5, 15.40193436],
    [45.5, 15.37335154],
    [46.5, 15.34660842],
    [47.5, 15.32168181],
    [48.5, 15.29854897],
    [49.5, 15.27718618],
    [50.5, 15.2575692],
    [51.5, 15.23967338],
    [52.5, 15.22347371],
    [53.5, 15.20894491],
    [54.5, 15.19606152],
    [55.5, 15.18479799],
    [56.5, 15.17512871],
    [57.5, 15.16702811],
    [58.5, 15.16047068],
    [59.5, 15.15543107],
    [60.5, 15.15188405],
    [61.5, 15.14980479],
    [62.5, 15.14916825],
    [63.5, 15.14994984],
    [64.5, 15.15212585],
    [65.5, 15.15567186],
    [66.5, 15.16056419],
    [67.5, 15.16677947],
    [68.5, 15.17429464],
    [69.5, 15.18308694],
    [70.5, 15.1931339],
    [71.5, 15.20441335],
    [72.5, 15.21690296],
    [73.5, 15.2305815],
    [74.5, 15.24542745],
    [75.5, 15.26141966],
    [76.5, 15.27853728],
    [77.5, 15.29675967],
    [78.5, 15.31606644],
    [79.5, 15.33643745],
    [80.5, 15.35785274],
    [81.5, 15.38029261],
    [82.5, 15.40373754],
    [83.5, 15.42816819],
    [84.5, 15.45356545],
    [85.5, 15.47991037],
    [86.5, 15.50718419],
    [87.5, 15.53536829],
    [88.5, 15.56444426],
    [89.5, 15.5943938],
    [90.5, 15.6251988],
    [91.5, 15.65684126],
    [92.5, 15.68930333],
    [93.5, 15.7225673],
    [94.5, 15.75661555],
    [95.5, 15.79143062],
    [96.5, 15.82699517],
    [97.5, 15.86329241],
    [98.5, 15.90030484],
    [99.5, 15.93801545],
    [100.5, 15.97640787],
    [101.5, 16.01546483],
    [102.5, 16.05516984],
    [103.5, 16.09550688],
    [104.5, 16.13645881],
    [105.5, 16.17800955],
    [106.5, 16.22014281],
    [107.5, 16.26284277],
    [108.5, 16.30609316],
    [109.5, 16.34987759],
    [110.5, 16.39418118],
    [111.5, 16.43898741],
    [112.5, 16.48428082],
    [113.5, 16.53004554],
    [114.5, 16.57626713],
    [115.5, 16.62292864],
    [116.5, 16.67001572],
    [117.5, 16.71751288],
    [118.5, 16.76540496],
    [119.5, 16.81367689],
    [120.5, 16.86231366],
    [121.5, 16.91130036],
    [122.5, 16.96062216],
    [123.5, 17.0102643],
    [124.5, 17.06021213],
    [125.5, 17.11045106],
    [126.5, 17.16096656],
    [127.5, 17.21174424],
    [128.5, 17.26276973],
    [129.5, 17.31402878],
    [130.5, 17.3655072],
    [131.5, 17.4171909],
    [132.5, 17.46906585],
    [133.5, 17.52111811],
    [134.5, 17.57333347],
    [135.5, 17.62569869],
    [136.5, 17.67819987],
    [137.5, 17.7308234],
    [138.5, 17.78355575],
    [139.5, 17.83638347],
    [140.5, 17.88929321],
    [141.5, 17.94227168],
    [142.5, 17.9953057],
    [143.5, 18.04838216],
    [144.5, 18.10148804],
    [145.5, 18.15461039],
    [146.5, 18.20773639],
    [147.5, 18.26085325],
    [148.5, 18.31394832],
    [149.5, 18.36700902],
    [150.5, 18.42002284],
    [151.5, 18.47297739],
    [152.5, 18.52586035],
    [153.5, 18.57865951],
    [154.5, 18.63136275],
    [155.5, 18.68395801],
    [156.5, 18.73643338],
    [157.5, 18.788777],
    [158.5, 18.84097713],
    [159.5, 18.89302212],
    [160.5, 18.94490041],
    [161.5, 18.99660055],
    [162.5, 19.04811118],
    [163.5, 19.09942105],
    [164.5, 19.15051899],
    [165.5, 19.20139397],
    [166.5, 19.25203503],
    [167.5, 19.30243131],
    [168.5, 19.35257209],
    [169.5, 19.40244671],
    [170.5, 19.45204465],
    [171.5, 19.50135548],
    [172.5, 19.55036888],
    [173.5, 19.59907464],
    [174.5, 19.64746266],
    [175.5, 19.69552294],
    [176.5, 19.7432456],
    [177.5, 19.79062086],
    [178.5, 19.83763907],
    [179.5, 19.88429066],
    [180.5, 19.9305662],
    [181.5, 19.97645636],
    [182.5, 20.02195192],
    [183.5, 20.06704377],
    [184.5, 20.11172291],
    [185.5, 20.15598047],
    [186.5, 20.19980767],
    [187.5, 20.24319586],
    [188.5, 20.28613648],
    [189.5, 20.32862109],
    [190.5, 20.37064138],
    [191.5, 20.41218911],
    [192.5, 20.45325617],
    [193.5, 20.49383457],
    [194.5, 20.5339164],
    [195.5, 20.57349387],
    [196.5, 20.61255929],
    [197.5, 20.65110506],
    [198.5, 20.6891237],
    [199.5, 20.72660728],
    [200.5, 20.76355011],
    [201.5, 20.79994337],
    [202.5, 20.83578051],
    [203.5, 20.87105449],
    [204.5, 20.90575839],
    [205.5, 20.93988477],
    [206.5, 20.97342858],
    [207.5, 21.00638171],
    [208.5, 21.0387374],
    [209.5, 21.07048996],
    [210.5, 21.10163241],
    [211.5, 21.13215845],
    [212.5, 21.16206171],
    [213.5, 21.1913351],
    [214.5, 21.21997472],
    [215.5, 21.24797262],
    [216.5, 21.27532239],
    [217.5, 21.30201933],
    [218.5, 21.32805489],
    [219.5, 21.35342563],
    [220.5, 21.37812462],
    [221.5, 21.40214589],
    [222.5, 21.42548351],
    [223.5, 21.44813156],
    [224.5, 21.47008412],
    [225.5, 21.49133529],
    [226.5, 21.51187918],
    [227.5, 21.53170989],
    [228.5, 21.55082155],
    [229.5, 21.56920824],
    [230.5, 21.58686406],
    [231.5, 21.60378309],
    [232.5, 21.61995939],
    [233.5, 21.635387],
    [234.5, 21.65006126],
    [235.5, 21.6639727],
    [236.5, 21.67711736],
    [237.5, 21.68948935],
    [238.5, 21.70108288],
    [239.5, 21.71189225],
    [240, 21.71699934],
    [240.5, 21.72190973]

];

var bmi_female_75th = [
    [24, 17.42745659],
    [24.5, 17.38581552],
    [25.5, 17.30484811],
    [26.5, 17.2269319],
    [27.5, 17.15202498],
    [28.5, 17.08008556],
    [29.5, 17.01107457],
    [30.5, 16.94495296],
    [31.5, 16.88168308],
    [32.5, 16.82122877],
    [33.5, 16.763554],
    [34.5, 16.70862449],
    [35.5, 16.65640663],
    [36.5, 16.60686761],
    [37.5, 16.55997523],
    [38.5, 16.51569783],
    [39.5, 16.4740041],
    [40.5, 16.43486298],
    [41.5, 16.39824347],
    [42.5, 16.36411453],
    [43.5, 16.33244497],
    [44.5, 16.30320336],
    [45.5, 16.27635793],
    [46.5, 16.25187703],
    [47.5, 16.22972719],
    [48.5, 16.20987583],
    [49.5, 16.19228952],
    [50.5, 16.17693441],
    [51.5, 16.16377626],
    [52.5, 16.15278049],
    [53.5, 16.14391221],
    [54.5, 16.13713628],
    [55.5, 16.13241736],
    [56.5, 16.12971996],
    [57.5, 16.12900854],
    [58.5, 16.13024748],
    [59.5, 16.13340121],
    [60.5, 16.13843423],
    [61.5, 16.14531133],
    [62.5, 16.15399692],
    [63.5, 16.16445581],
    [64.5, 16.17665394],
    [65.5, 16.19055603],
    [66.5, 16.20612774],
    [67.5, 16.22333502],
    [68.5, 16.24214414],
    [69.5, 16.26252167],
    [70.5, 16.28443453],
    [71.5, 16.30784995],
    [72.5, 16.33273474],
    [73.5, 16.35905747],
    [74.5, 16.38678602],
    [75.5, 16.41588887],
    [76.5, 16.44633482],
    [77.5, 16.478093],
    [78.5, 16.51113288],
    [79.5, 16.54542424],
    [80.5, 16.58093719],
    [81.5, 16.61764214],
    [82.5, 16.65550982],
    [83.5, 16.69451128],
    [84.5, 16.73461785],
    [85.5, 16.77580119],
    [86.5, 16.81803321],
    [87.5, 16.86128616],
    [88.5, 16.90553254],
    [89.5, 16.95074515],
    [90.5, 16.99689705],
    [91.5, 17.04396158],
    [92.5, 17.09191233],
    [93.5, 17.14072316],
    [94.5, 17.19036814],
    [95.5, 17.24082164],
    [96.5, 17.29205828],
    [97.5, 17.34405364],
    [98.5, 17.39678222],
    [99.5, 17.45021936],
    [100.5, 17.50434149],
    [101.5, 17.55912371],
    [102.5, 17.61454239],
    [103.5, 17.67057478],
    [104.5, 17.72719638],
    [105.5, 17.78438449],
    [106.5, 17.84211614],
    [107.5, 17.9003692],
    [108.5, 17.95912092],
    [109.5, 18.01834843],
    [110.5, 18.07803138],
    [111.5, 18.13814687],
    [112.5, 18.19867379],
    [113.5, 18.25959047],
    [114.5, 18.32087764],
    [115.5, 18.38251202],
    [116.5, 18.44447472],
    [117.5, 18.50674506],
    [118.5, 18.56930296],
    [119.5, 18.63212859],
    [120.5, 18.69520235],
    [121.5, 18.75850486],
    [122.5, 18.82201698],
    [123.5, 18.8857198],
    [124.5, 18.94959465],
    [125.5, 19.01362305],
    [126.5, 19.07778681],
    [127.5, 19.14206792],
    [128.5, 19.20644863],
    [129.5, 19.2709114],
    [130.5, 19.33543894],
    [131.5, 19.40001418],
    [132.5, 19.46462028],
    [133.5, 19.52924064],
    [134.5, 19.59385826],
    [135.5, 19.65845792],
    [136.5, 19.72302336],
    [137.5, 19.78753889],
    [138.5, 19.85198907],
    [139.5, 19.91635869],
    [140.5, 19.98063276],
    [141.5, 20.04479655],
    [142.5, 20.10883554],
    [143.5, 20.17273546],
    [144.5, 20.23648228],
    [145.5, 20.30006219],
    [146.5, 20.36346164],
    [147.5, 20.42666729],
    [148.5, 20.48966607],
    [149.5, 20.55244514],
    [150.5, 20.61499187],
    [151.5, 20.67729392],
    [152.5, 20.73933915],
    [153.5, 20.80111569],
    [154.5, 20.86261191],
    [155.5, 20.9238164],
    [156.5, 20.98471803],
    [157.5, 21.04530589],
    [158.5, 21.10556932],
    [159.5, 21.16549792],
    [160.5, 21.22508152],
    [161.5, 21.28431023],
    [162.5, 21.34317438],
    [163.5, 21.40166456],
    [164.5, 21.45977162],
    [165.5, 21.51748666],
    [166.5, 21.57480102],
    [167.5, 21.63170632],
    [168.5, 21.68819441],
    [169.5, 21.74425743],
    [170.5, 21.79988774],
    [171.5, 21.855078],
    [172.5, 21.90982109],
    [173.5, 21.96411019],
    [174.5, 22.01793871],
    [175.5, 22.07130033],
    [176.5, 22.12418902],
    [177.5, 22.17659899],
    [178.5, 22.22852472],
    [179.5, 22.27996095],
    [180.5, 22.33090272],
    [181.5, 22.3813453],
    [182.5, 22.43128425],
    [183.5, 22.4807154],
    [184.5, 22.52963484],
    [185.5, 22.57803895],
    [186.5, 22.62592435],
    [187.5, 22.67328797],
    [188.5, 22.72012699],
    [189.5, 22.76643886],
    [190.5, 22.81222132],
    [191.5, 22.85747235],
    [192.5, 22.90219024],
    [193.5, 22.94637354],
    [194.5, 22.99002104],
    [195.5, 23.03313184],
    [196.5, 23.07570528],
    [197.5, 23.11774099],
    [198.5, 23.15923885],
    [199.5, 23.2001981],
    [200.5, 23.24062188],
    [201.5, 23.28050814],
    [202.5, 23.31985872],
    [203.5, 23.35867482],
    [204.5, 23.39695789],
    [205.5, 23.43470854],
    [206.5, 23.4719319],
    [207.5, 23.50862756],
    [208.5, 23.54479768],
    [209.5, 23.58044651],
    [210.5, 23.61557603],
    [211.5, 23.65018962],
    [212.5, 23.68429059],
    [213.5, 23.71788103],
    [214.5, 23.75096919],
    [215.5, 23.78355579],
    [216.5, 23.81564452],
    [217.5, 23.84724252],
    [218.5, 23.8783497],
    [219.5, 23.90897582],
    [220.5, 23.93912415],
    [221.5, 23.96879993],
    [222.5, 23.99800858],
    [223.5, 24.02675569],
    [224.5, 24.05504702],
    [225.5, 24.08288851],
    [226.5, 24.11028624],
    [227.5, 24.13724646],
    [228.5, 24.16377555],
    [229.5, 24.18988006],
    [230.5, 24.21556667],
    [231.5, 24.24084219],
    [232.5, 24.26571357],
    [233.5, 24.29018788],
    [234.5, 24.31427499],
    [235.5, 24.33797514],
    [236.5, 24.3613],
    [237.5, 24.3842575],
    [238.5, 24.40685591],
    [239.5, 24.42910393],
    [240, 24.44009565],
    [240.5, 24.45100622]

];

var bmi_female_85th = [
    [24, 18.01820579],
    [24.5, 17.97371413],
    [25.5, 17.88748812],
    [26.5, 17.80489051],
    [27.5, 17.72586396],
    [28.5, 17.65035137],
    [29.5, 17.57829774],
    [30.5, 17.50964839],
    [31.5, 17.44434994],
    [32.5, 17.38235043],
    [33.5, 17.32359846],
    [34.5, 17.26804436],
    [35.5, 17.21563951],
    [36.5, 17.16633643],
    [37.5, 17.12008872],
    [38.5, 17.07685104],
    [39.5, 17.03657894],
    [40.5, 16.99922885],
    [41.5, 16.96475788],
    [42.5, 16.93312378],
    [43.5, 16.90428477],
    [44.5, 16.87819947],
    [45.5, 16.85482681],
    [46.5, 16.83412628],
    [47.5, 16.81605638],
    [48.5, 16.80057671],
    [49.5, 16.78764654],
    [50.5, 16.77722512],
    [51.5, 16.76927159],
    [52.5, 16.76374505],
    [53.5, 16.76060449],
    [54.5, 16.75980884],
    [55.5, 16.76131695],
    [56.5, 16.76508763],
    [57.5, 16.77107966],
    [58.5, 16.77925184],
    [59.5, 16.78956298],
    [60.5, 16.80197195],
    [61.5, 16.81643792],
    [62.5, 16.83291965],
    [63.5, 16.85137625],
    [64.5, 16.87176785],
    [65.5, 16.89405345],
    [66.5, 16.91819285],
    [67.5, 16.94414613],
    [68.5, 16.97187362],
    [69.5, 17.00133593],
    [70.5, 17.03249399],
    [71.5, 17.065309],
    [72.5, 17.09974172],
    [73.5, 17.13575468],
    [74.5, 17.17330968],
    [75.5, 17.21236911],
    [76.5, 17.25289572],
    [77.5, 17.29485256],
    [78.5, 17.33820304],
    [79.5, 17.38291092],
    [80.5, 17.42894029],
    [81.5, 17.4762556],
    [82.5, 17.52482162],
    [83.5, 17.57460349],
    [84.5, 17.6255667],
    [85.5, 17.67767708],
    [86.5, 17.7309008],
    [87.5, 17.78520438],
    [88.5, 17.8405547],
    [89.5, 17.89691898],
    [90.5, 17.95426475],
    [91.5, 18.01255992],
    [92.5, 18.07177271],
    [93.5, 18.13187166],
    [94.5, 18.19282565],
    [95.5, 18.25460388],
    [96.5, 18.31717594],
    [97.5, 18.38051241],
    [98.5, 18.44458291],
    [99.5, 18.50935798],
    [100.5, 18.57480931],
    [101.5, 18.6409074],
    [102.5, 18.70762408],
    [103.5, 18.77493214],
    [104.5, 18.84280276],
    [105.5, 18.91120897],
    [106.5, 18.98012366],
    [107.5, 19.04952063],
    [108.5, 19.11937316],
    [109.5, 19.18965453],
    [110.5, 19.26034062],
    [111.5, 19.33140487],
    [112.5, 19.4028226],
    [113.5, 19.47456869],
    [114.5, 19.54662051],
    [115.5, 19.6189515],
    [116.5, 19.69153965],
    [117.5, 19.7643612],
    [118.5, 19.83739314],
    [119.5, 19.91061278],
    [120.5, 19.98399779],
    [121.5, 20.05752615],
    [122.5, 20.13117619],
    [123.5, 20.20492657],
    [124.5, 20.27875629],
    [125.5, 20.35264468],
    [126.5, 20.42657139],
    [127.5, 20.50051644],
    [128.5, 20.57446015],
    [129.5, 20.64838321],
    [130.5, 20.72226661],
    [131.5, 20.79609169],
    [132.5, 20.86984014],
    [133.5, 20.94349396],
    [134.5, 21.01703489],
    [135.5, 21.09044653],
    [136.5, 21.16371155],
    [137.5, 21.2368133],
    [138.5, 21.30973548],
    [139.5, 21.38246211],
    [140.5, 21.45497756],
    [141.5, 21.52726655],
    [142.5, 21.5993141],
    [143.5, 21.6711056],
    [144.5, 21.74262677],
    [145.5, 21.81386368],
    [146.5, 21.88480271],
    [147.5, 21.95543061],
    [148.5, 22.02573445],
    [149.5, 22.09570166],
    [150.5, 22.16531999],
    [151.5, 22.23457754],
    [152.5, 22.30346276],
    [153.5, 22.37196443],
    [154.5, 22.44007167],
    [155.5, 22.50777397],
    [156.5, 22.57506113],
    [157.5, 22.6419233],
    [158.5, 22.70835101],
    [159.5, 22.77433508],
    [160.5, 22.83986672],
    [161.5, 22.90493747],
    [162.5, 22.96953922],
    [163.5, 23.03366421],
    [164.5, 23.09730502],
    [165.5, 23.16045458],
    [166.5, 23.2231062],
    [167.5, 23.28525349],
    [168.5, 23.34689045],
    [169.5, 23.40801143],
    [170.5, 23.46861112],
    [171.5, 23.52868458],
    [172.5, 23.5882272],
    [173.5, 23.64723476],
    [174.5, 23.70570337],
    [175.5, 23.76362952],
    [176.5, 23.82101004],
    [177.5, 23.87784214],
    [178.5, 23.93412338],
    [179.5, 23.98985168],
    [180.5, 24.04502533],
    [181.5, 24.09964299],
    [182.5, 24.15370368],
    [183.5, 24.20720678],
    [184.5, 24.26015204],
    [185.5, 24.3125396],
    [186.5, 24.36436993],
    [187.5, 24.41564391],
    [188.5, 24.46636278],
    [189.5, 24.51652812],
    [190.5, 24.56614194],
    [191.5, 24.61520657],
    [192.5, 24.66372475],
    [193.5, 24.71169957],
    [194.5, 24.75913451],
    [195.5, 24.80603342],
    [196.5, 24.85240053],
    [197.5, 24.89824041],
    [198.5, 24.94355805],
    [199.5, 24.98835785],
    [200.5, 25.03264836],
    [201.5, 25.07643282],
    [202.5, 25.11971866],
    [203.5, 25.16251271],
    [204.5, 25.20482218],
    [205.5, 25.24665348],
    [206.5, 25.28801794],
    [207.5, 25.32892108],
    [208.5, 25.3693713],
    [209.5, 25.40937929],
    [210.5, 25.44895346],
    [211.5, 25.48810377],
    [212.5, 25.52684029],
    [213.5, 25.56517184],
    [214.5, 25.603114],
    [215.5, 25.64067435],
    [216.5, 25.67786376],
    [217.5, 25.714697],
    [218.5, 25.75118107],
    [219.5, 25.7873338],
    [220.5, 25.82316611],
    [221.5, 25.85869115],
    [222.5, 25.89392241],
    [223.5, 25.92887369],
    [224.5, 25.96355908],
    [225.5, 25.99799301],
    [226.5, 26.03219019],
    [227.5, 26.06616563],
    [228.5, 26.09993465],
    [229.5, 26.13351285],
    [230.5, 26.16691611],
    [231.5, 26.20016061],
    [232.5, 26.23326279],
    [233.5, 26.26623937],
    [234.5, 26.29911039],
    [235.5, 26.33188509],
    [236.5, 26.36458581],
    [237.5, 26.39723077],
    [238.5, 26.42983873],
    [239.5, 26.4624291],
    [240, 26.47871966],
    [240.5, 26.49501679]

];

var bmi_female_90th = [
    [24, 18.44139317],
    [24.5, 18.39526372],
    [25.5, 18.30610782],
    [26.5, 18.22103253],
    [27.5, 18.13997016],
    [28.5, 18.06285334],
    [29.5, 17.98961595],
    [30.5, 17.92019231],
    [31.5, 17.85451773],
    [32.5, 17.79252859],
    [33.5, 17.73416201],
    [34.5, 17.67935646],
    [35.5, 17.62805146],
    [36.5, 17.5801877],
    [37.5, 17.53570705],
    [38.5, 17.49455256],
    [39.5, 17.45666842],
    [40.5, 17.42199993],
    [41.5, 17.39049347],
    [42.5, 17.36209639],
    [43.5, 17.33675699],
    [44.5, 17.31442438],
    [45.5, 17.29504843],
    [46.5, 17.27857995],
    [47.5, 17.2649696],
    [48.5, 17.25416922],
    [49.5, 17.24613088],
    [50.5, 17.24080701],
    [51.5, 17.23815034],
    [52.5, 17.23811389],
    [53.5, 17.24065086],
    [54.5, 17.24571467],
    [55.5, 17.25325891],
    [56.5, 17.2632373],
    [57.5, 17.27560372],
    [58.5, 17.29031217],
    [59.5, 17.30731682],
    [60.5, 17.32657196],
    [61.5, 17.34803218],
    [62.5, 17.37165187],
    [63.5, 17.39738575],
    [64.5, 17.42518932],
    [65.5, 17.45501735],
    [66.5, 17.48682523],
    [67.5, 17.52056863],
    [68.5, 17.55620345],
    [69.5, 17.5936859],
    [70.5, 17.63297244],
    [71.5, 17.67401984],
    [72.5, 17.7167845],
    [73.5, 17.7612244],
    [74.5, 17.80729692],
    [75.5, 17.85496],
    [76.5, 17.90417191],
    [77.5, 17.95489128],
    [78.5, 18.00707707],
    [79.5, 18.06068861],
    [80.5, 18.11568557],
    [81.5, 18.17202801],
    [82.5, 18.22967635],
    [83.5, 18.28859138],
    [84.5, 18.34873428],
    [85.5, 18.4100666],
    [86.5, 18.47255029],
    [87.5, 18.53614768],
    [88.5, 18.60082149],
    [89.5, 18.66653485],
    [90.5, 18.73325124],
    [91.5, 18.80093458],
    [92.5, 18.86954915],
    [93.5, 18.93905963],
    [94.5, 19.00943108],
    [95.5, 19.08062897],
    [96.5, 19.15261918],
    [97.5, 19.22536854],
    [98.5, 19.29884326],
    [99.5, 19.3730104],
    [100.5, 19.44783809],
    [101.5, 19.52329364],
    [102.5, 19.59934557],
    [103.5, 19.67596331],
    [104.5, 19.75311515],
    [105.5, 19.830771],
    [106.5, 19.90890079],
    [107.5, 19.98747533],
    [108.5, 20.06646519],
    [109.5, 20.14584104],
    [110.5, 20.22557581],
    [111.5, 20.30564061],
    [112.5, 20.38600821],
    [113.5, 20.46665117],
    [114.5, 20.5475442],
    [115.5, 20.628659],
    [116.5, 20.70997108],
    [117.5, 20.79145469],
    [118.5, 20.87308482],
    [119.5, 20.9548369],
    [120.5, 21.03668675],
    [121.5, 21.11861063],
    [122.5, 21.20058521],
    [123.5, 21.28258757],
    [124.5, 21.36459523],
    [125.5, 21.44658611],
    [126.5, 21.52853856],
    [127.5, 21.61043134],
    [128.5, 21.69224364],
    [129.5, 21.77395506],
    [130.5, 21.85554562],
    [131.5, 21.93699575],
    [132.5, 22.01828633],
    [133.5, 22.09939861],
    [134.5, 22.18031382],
    [135.5, 22.26101479],
    [136.5, 22.34148377],
    [137.5, 22.42170373],
    [138.5, 22.50165801],
    [139.5, 22.58133043],
    [140.5, 22.66070517],
    [141.5, 22.73976686],
    [142.5, 22.81850056],
    [143.5, 22.89689172],
    [144.5, 22.97492622],
    [145.5, 23.05259037],
    [146.5, 23.12987089],
    [147.5, 23.20675491],
    [148.5, 23.28322999],
    [149.5, 23.35928412],
    [150.5, 23.43490568],
    [151.5, 23.51008349],
    [152.5, 23.58480678],
    [153.5, 23.65906521],
    [154.5, 23.73284885],
    [155.5, 23.80614819],
    [156.5, 23.87895414],
    [157.5, 23.95125804],
    [158.5, 24.02305164],
    [159.5, 24.0943271],
    [160.5, 24.16507702],
    [161.5, 24.23529442],
    [162.5, 24.30497273],
    [163.5, 24.37410579],
    [164.5, 24.4426879],
    [165.5, 24.51071375],
    [166.5, 24.57817846],
    [167.5, 24.64507758],
    [168.5, 24.71140708],
    [169.5, 24.77716335],
    [170.5, 24.8423432],
    [171.5, 24.90694389],
    [172.5, 24.97096308],
    [173.5, 25.03439887],
    [174.5, 25.09724977],
    [175.5, 25.15951476],
    [176.5, 25.22119319],
    [177.5, 25.28228489],
    [178.5, 25.3427901],
    [179.5, 25.40270949],
    [180.5, 25.46204417],
    [181.5, 25.52079568],
    [182.5, 25.578966],
    [183.5, 25.63655753],
    [184.5, 25.69357313],
    [185.5, 25.75001608],
    [186.5, 25.80589011],
    [187.5, 25.86119939],
    [188.5, 25.91594853],
    [189.5, 25.97014258],
    [190.5, 26.02378703],
    [191.5, 26.07688783],
    [192.5, 26.12945136],
    [193.5, 26.18148447],
    [194.5, 26.23299442],
    [195.5, 26.28398896],
    [196.5, 26.33447627],
    [197.5, 26.38446498],
    [198.5, 26.43396418],
    [199.5, 26.48298259],
    [200.5, 26.53153263],
    [201.5, 26.57962232],
    [202.5, 26.62726338],
    [203.5, 26.67446717],
    [204.5, 26.7212455],
    [205.5, 26.76760965],
    [206.5, 26.81357526],
    [207.5, 26.85915312],
    [208.5, 26.90435663],
    [209.5, 26.94920132],
    [210.5, 26.9937009],
    [211.5, 27.03787056],
    [212.5, 27.08172575],
    [213.5, 27.12528094],
    [214.5, 27.16855668],
    [215.5, 27.21156668],
    [216.5, 27.25432769],
    [217.5, 27.29685999],
    [218.5, 27.33917721],
    [219.5, 27.38130268],
    [220.5, 27.42325378],
    [221.5, 27.46505002],
    [222.5, 27.50671138],
    [223.5, 27.54825824],
    [224.5, 27.58971144],
    [225.5, 27.63109226],
    [226.5, 27.67242239],
    [227.5, 27.71372396],
    [228.5, 27.75501954],
    [229.5, 27.7963321],
    [230.5, 27.83768505],
    [231.5, 27.87910223],
    [232.5, 27.92060786],
    [233.5, 27.9622266],
    [234.5, 28.00398629],
    [235.5, 28.04590512],
    [236.5, 28.08801335],
    [237.5, 28.13033767],
    [238.5, 28.17290543],
    [239.5, 28.21574476],
    [240, 28.23727135],
    [240.5, 28.25887983]

];

var bmi_female_95th = [
    [24, 19.10623522],
    [24.5, 19.05823845],
    [25.5, 18.9659499],
    [26.5, 18.87853388],
    [27.5, 18.79590999],
    [28.5, 18.71799839],
    [29.5, 18.64471845],
    [30.5, 18.5759903],
    [31.5, 18.51173402],
    [32.5, 18.45186978],
    [33.5, 18.39631848],
    [34.5, 18.34500099],
    [35.5, 18.29783876],
    [36.5, 18.25475381],
    [37.5, 18.21566879],
    [38.5, 18.18050711],
    [39.5, 18.14919304],
    [40.5, 18.12165176],
    [41.5, 18.09780945],
    [42.5, 18.07759336],
    [43.5, 18.06093184],
    [44.5, 18.04775438],
    [45.5, 18.03799161],
    [46.5, 18.03157513],
    [47.5, 18.02843822],
    [48.5, 18.02851473],
    [49.5, 18.03173977],
    [50.5, 18.03804946],
    [51.5, 18.04738091],
    [52.5, 18.05967216],
    [53.5, 18.0748621],
    [54.5, 18.09289045],
    [55.5, 18.11369768],
    [56.5, 18.13722499],
    [57.5, 18.16341422],
    [58.5, 18.19220786],
    [59.5, 18.22354893],
    [60.5, 18.25738105],
    [61.5, 18.29364826],
    [62.5, 18.33229525],
    [63.5, 18.37326713],
    [64.5, 18.41650918],
    [65.5, 18.46196754],
    [66.5, 18.50958858],
    [67.5, 18.55931907],
    [68.5, 18.6111062],
    [69.5, 18.6648976],
    [70.5, 18.72064127],
    [71.5, 18.77828567],
    [72.5, 18.83777954],
    [73.5, 18.89907229],
    [74.5, 18.96211354],
    [75.5, 19.02685341],
    [76.5, 19.09324243],
    [77.5, 19.16123158],
    [78.5, 19.23077228],
    [79.5, 19.30181639],
    [80.5, 19.37431624],
    [81.5, 19.44822461],
    [82.5, 19.52349477],
    [83.5, 19.60008044],
    [84.5, 19.67793583],
    [85.5, 19.75701564],
    [86.5, 19.83727506],
    [87.5, 19.91866977],
    [88.5, 20.00115598],
    [89.5, 20.08469037],
    [90.5, 20.16923016],
    [91.5, 20.25473307],
    [92.5, 20.34115737],
    [93.5, 20.42846182],
    [94.5, 20.51660573],
    [95.5, 20.60554896],
    [96.5, 20.69525186],
    [97.5, 20.78567525],
    [98.5, 20.87678068],
    [99.5, 20.96853014],
    [100.5, 21.06088607],
    [101.5, 21.15381165],
    [102.5, 21.24727049],
    [103.5, 21.34122666],
    [104.5, 21.43564505],
    [105.5, 21.5304909],
    [106.5, 21.62573005],
    [107.5, 21.72132885],
    [108.5, 21.8172543],
    [109.5, 21.91347402],
    [110.5, 22.00995586],
    [111.5, 22.10666864],
    [112.5, 22.20358151],
    [113.5, 22.30066429],
    [114.5, 22.39788709],
    [115.5, 22.49522108],
    [116.5, 22.59263755],
    [117.5, 22.69010855],
    [118.5, 22.78760665],
    [119.5, 22.88510501],
    [120.5, 22.98257733],
    [121.5, 23.07999788],
    [122.5, 23.17734149],
    [123.5, 23.27458358],
    [124.5, 23.3717001],
    [125.5, 23.46866758],
    [126.5, 23.56546313],
    [127.5, 23.6620644],
    [128.5, 23.7584496],
    [129.5, 23.85459754],
    [130.5, 23.95048756],
    [131.5, 24.04609957],
    [132.5, 24.14141407],
    [133.5, 24.23641208],
    [134.5, 24.33107526],
    [135.5, 24.4253857],
    [136.5, 24.51932616],
    [137.5, 24.61287993],
    [138.5, 24.70603086],
    [139.5, 24.79876336],
    [140.5, 24.89106241],
    [141.5, 24.98291353],
    [142.5, 25.07430281],
    [143.5, 25.16521691],
    [144.5, 25.25564304],
    [145.5, 25.34556897],
    [146.5, 25.43498301],
    [147.5, 25.52387405],
    [148.5, 25.61223153],
    [149.5, 25.70004544],
    [150.5, 25.78730634],
    [151.5, 25.87400532],
    [152.5, 25.96013405],
    [153.5, 26.04568474],
    [154.5, 26.13065016],
    [155.5, 26.21502362],
    [156.5, 26.298799],
    [157.5, 26.38197072],
    [158.5, 26.46453376],
    [159.5, 26.54648363],
    [160.5, 26.62781643],
    [161.5, 26.70852876],
    [162.5, 26.78861781],
    [163.5, 26.8680813],
    [164.5, 26.94691749],
    [165.5, 27.02512521],
    [166.5, 27.10270382],
    [167.5, 27.17965324],
    [168.5, 27.25597392],
    [169.5, 27.33166687],
    [170.5, 27.40673363],
    [171.5, 27.4811763],
    [172.5, 27.55499753],
    [173.5, 27.62820049],
    [174.5, 27.70078892],
    [175.5, 27.77276709],
    [176.5, 27.84413981],
    [177.5, 27.91491246],
    [178.5, 27.98509093],
    [179.5, 28.05468167],
    [180.5, 28.12369169],
    [181.5, 28.19212851],
    [182.5, 28.26000023],
    [183.5, 28.32731547],
    [184.5, 28.3940834],
    [185.5, 28.46031375],
    [186.5, 28.52601678],
    [187.5, 28.59120331],
    [188.5, 28.6558847],
    [189.5, 28.72007286],
    [190.5, 28.78378025],
    [191.5, 28.84701989],
    [192.5, 28.90980533],
    [193.5, 28.97215071],
    [194.5, 29.03407069],
    [195.5, 29.0955805],
    [196.5, 29.15669594],
    [197.5, 29.21743336],
    [198.5, 29.27780966],
    [199.5, 29.33784232],
    [200.5, 29.39754939],
    [201.5, 29.45694948],
    [202.5, 29.51606178],
    [203.5, 29.57490604],
    [204.5, 29.63350259],
    [205.5, 29.69187236],
    [206.5, 29.75003682],
    [207.5, 29.80801808],
    [208.5, 29.8658388],
    [209.5, 29.92352223],
    [210.5, 29.98109225],
    [211.5, 30.03857329],
    [212.5, 30.09599042],
    [213.5, 30.15336926],
    [214.5, 30.21073618],
    [215.5, 30.26811799],
    [216.5, 30.32554216],
    [217.5, 30.38303689],
    [218.5, 30.44063073],
    [219.5, 30.49835324],
    [220.5, 30.55623433],
    [221.5, 30.61430463],
    [222.5, 30.67259539],
    [223.5, 30.73113849],
    [224.5, 30.78996648],
    [225.5, 30.84911253],
    [226.5, 30.90861047],
    [227.5, 30.96849476],
    [228.5, 31.02880054],
    [229.5, 31.08956357],
    [230.5, 31.1508203],
    [231.5, 31.21260782],
    [232.5, 31.27496389],
    [233.5, 31.33792691],
    [234.5, 31.40153631],
    [235.5, 31.46583097],
    [236.5, 31.53085181],
    [237.5, 31.59663995],
    [238.5, 31.66323724],
    [239.5, 31.73068625],
    [240, 31.76474311],
    [240.5, 31.79902964]

];

var bmi_female_97th = [
    [24, 19.56410958],
    [24.5, 19.51534333],
    [25.5, 19.42197989],
    [26.5, 19.33410382],
    [27.5, 19.25163039],
    [28.5, 19.17447582],
    [29.5, 19.10255392],
    [30.5, 19.03577948],
    [31.5, 18.97406651],
    [32.5, 18.91732801],
    [33.5, 18.86547771],
    [34.5, 18.81842784],
    [35.5, 18.7760905],
    [36.5, 18.73837743],
    [37.5, 18.70520011],
    [38.5, 18.67646985],
    [39.5, 18.65209796],
    [40.5, 18.63199585],
    [41.5, 18.61607518],
    [42.5, 18.60424802],
    [43.5, 18.59642696],
    [44.5, 18.59252526],
    [45.5, 18.59245694],
    [46.5, 18.59613624],
    [47.5, 18.6034803],
    [48.5, 18.61440545],
    [49.5, 18.62882971],
    [50.5, 18.64667225],
    [51.5, 18.66785338],
    [52.5, 18.6922946],
    [53.5, 18.71991859],
    [54.5, 18.75064919],
    [55.5, 18.78441142],
    [56.5, 18.82113141],
    [57.5, 18.86073644],
    [58.5, 18.90315485],
    [59.5, 18.94831604],
    [60.5, 18.99615046],
    [61.5, 19.04658918],
    [62.5, 19.09956514],
    [63.5, 19.15501183],
    [64.5, 19.21286229],
    [65.5, 19.27305261],
    [66.5, 19.33551875],
    [67.5, 19.40019747],
    [68.5, 19.46702632],
    [69.5, 19.53594365],
    [70.5, 19.60688859],
    [71.5, 19.67980103],
    [72.5, 19.75462234],
    [73.5, 19.83129333],
    [74.5, 19.90975644],
    [75.5, 19.9899546],
    [76.5, 20.07183146],
    [77.5, 20.15533137],
    [78.5, 20.24039941],
    [79.5, 20.32698132],
    [80.5, 20.41502357],
    [81.5, 20.5044733],
    [82.5, 20.59527834],
    [83.5, 20.68738721],
    [84.5, 20.7807491],
    [85.5, 20.8753139],
    [86.5, 20.97103216],
    [87.5, 21.06785511],
    [88.5, 21.16573466],
    [89.5, 21.2646234],
    [90.5, 21.3644746],
    [91.5, 21.46524221],
    [92.5, 21.56688088],
    [93.5, 21.66934595],
    [94.5, 21.77259347],
    [95.5, 21.87658015],
    [96.5, 21.98126336],
    [97.5, 22.08660008],
    [98.5, 22.19254999],
    [99.5, 22.29907253],
    [100.5, 22.4061266],
    [101.5, 22.51367407],
    [102.5, 22.62167597],
    [103.5, 22.73009308],
    [104.5, 22.8388898],
    [105.5, 22.94802887],
    [106.5, 23.05747448],
    [107.5, 23.16719057],
    [108.5, 23.27714304],
    [109.5, 23.38729906],
    [110.5, 23.49762289],
    [111.5, 23.60808381],
    [112.5, 23.71864933],
    [113.5, 23.82928884],
    [114.5, 23.9399692],
    [115.5, 24.05066418],
    [116.5, 24.16134214],
    [117.5, 24.27197506],
    [118.5, 24.38253502],
    [119.5, 24.49299479],
    [120.5, 24.60332779],
    [121.5, 24.7135081],
    [122.5, 24.8235105],
    [123.5, 24.93331042],
    [124.5, 25.04288396],
    [125.5, 25.1522079],
    [126.5, 25.26125968],
    [127.5, 25.37001743],
    [128.5, 25.47845992],
    [129.5, 25.58656661],
    [130.5, 25.69431763],
    [131.5, 25.80169379],
    [132.5, 25.90867656],
    [133.5, 26.01524807],
    [134.5, 26.12139201],
    [135.5, 26.22709056],
    [136.5, 26.33232837],
    [137.5, 26.43709027],
    [138.5, 26.54136175],
    [139.5, 26.64512897],
    [140.5, 26.74837878],
    [141.5, 26.85109867],
    [142.5, 26.95327681],
    [143.5, 27.05490205],
    [144.5, 27.15596389],
    [145.5, 27.25645252],
    [146.5, 27.35635878],
    [147.5, 27.45567419],
    [148.5, 27.55439092],
    [149.5, 27.65250183],
    [150.5, 27.75000043],
    [151.5, 27.8468809],
    [152.5, 27.9431381],
    [153.5, 28.03876753],
    [154.5, 28.13376538],
    [155.5, 28.22812848],
    [156.5, 28.32185435],
    [157.5, 28.41494115],
    [158.5, 28.50738772],
    [159.5, 28.59919355],
    [160.5, 28.69035881],
    [161.5, 28.7808843],
    [162.5, 28.8707715],
    [163.5, 28.96002256],
    [164.5, 29.04864025],
    [165.5, 29.13662805],
    [166.5, 29.22399004],
    [167.5, 29.31073101],
    [168.5, 29.39685635],
    [169.5, 29.48237214],
    [170.5, 29.56728511],
    [171.5, 29.65160263],
    [172.5, 29.73533271],
    [173.5, 29.81848403],
    [174.5, 29.90106591],
    [175.5, 29.9830883],
    [176.5, 30.06456182],
    [177.5, 30.14549772],
    [178.5, 30.22590789],
    [179.5, 30.30580486],
    [180.5, 30.3852018],
    [181.5, 30.46411251],
    [182.5, 30.54255145],
    [183.5, 30.62053368],
    [184.5, 30.69807493],
    [185.5, 30.77519152],
    [186.5, 30.85190042],
    [187.5, 30.92821925],
    [188.5, 31.00416621],
    [189.5, 31.07976017],
    [190.5, 31.15502058],
    [191.5, 31.22996756],
    [192.5, 31.30462183],
    [193.5, 31.37900471],
    [194.5, 31.45313817],
    [195.5, 31.5270448],
    [196.5, 31.6007478],
    [197.5, 31.67427098],
    [198.5, 31.74763877],
    [199.5, 31.8208776],
    [200.5, 31.89400908],
    [201.5, 31.96706354],
    [202.5, 32.04006655],
    [203.5, 32.11304561],
    [204.5, 32.18602887],
    [205.5, 32.25904682],
    [206.5, 32.33212376],
    [207.5, 32.40529387],
    [208.5, 32.47858818],
    [209.5, 32.55203545],
    [210.5, 32.62566902],
    [211.5, 32.69952105],
    [212.5, 32.77362474],
    [213.5, 32.84801632],
    [214.5, 32.92272296],
    [215.5, 32.9977851],
    [216.5, 33.07323931],
    [217.5, 33.14911749],
    [218.5, 33.22546443],
    [219.5, 33.30230965],
    [220.5, 33.37969431],
    [221.5, 33.45765732],
    [222.5, 33.53623826],
    [223.5, 33.61547736],
    [224.5, 33.69541553],
    [225.5, 33.77609435],
    [226.5, 33.8575561],
    [227.5, 33.93984372],
    [228.5, 34.02300086],
    [229.5, 34.10707184],
    [230.5, 34.1921017],
    [231.5, 34.27813617],
    [232.5, 34.3652217],
    [233.5, 34.45340544],
    [234.5, 34.54273066],
    [235.5, 34.6332581],
    [236.5, 34.72502979],
    [237.5, 34.81809511],
    [238.5, 34.91250374],
    [239.5, 35.00830552],
    [240, 35.05675093],
    [240.5, 35.10555822]

];

$(function chartSetup() {
    $('#container').highcharts({
        chart: {
            type: 'areaspline'
        },
        title: {
            text: 'BMI Growth Chart (Females)'
        },
        legend: {
            layout: 'horizontal',
            align: 'center',
            verticalAlign: 'bottom',
            borderWidth: 1,
            backgroundColor: '#FFFFFF',
            itemStyle: {
                cursor: 'pointer',
                color: '#274b6d',
                fontSize: '12px'
            }
        },
        plotOptions: {
            areaspline: {
                fillOpacity: 0.2
            },
            series: {
                minPointLength: 1,
                shadow: false,
                events: {
                    legendItemClick: function () {
                        if (this.name == 'Percentiles') {
                            toggleBands(chart);
                        }
                    }
                }
            }
        },
        xAxis: {
            title: {
                text: 'Age (months)'
            },
            labels: {
                rotation: -90,
                step: 5
            },
            tickInterval: 5
        },
        yAxis: {
            title: {
                text: 'BMI'
            },
            min: 12
        },
        tooltip: {
            shared: true,
            valueDecimals: 2
        },
        credits: {
            enabled: false
        },
        series: [{
            name: '3rd Percentile',
            data: bmi_female_3rd,
            marker: {
                enabled: false
            }
        }, {
            name: '5th Percentile',
            data: bmi_female_5th,
            marker: {
                enabled: false
            }
        }, {
            name: '10th Percentile',
            data: bmi_female_10th,
            marker: {
                enabled: false
            }
        }, {
            name: '25th Percentile',
            data: bmi_female_25th,
            marker: {
                enabled: false
            }
        }, {
            name: '50th Percentile',
            data: bmi_female_50th,
            marker: {
                enabled: false
            }
        }, {
            name: '75th Percentile',
            data: bmi_female_75th,
            marker: {
                enabled: false
            }
        }, {
            name: '85th Percentile',
            data: bmi_female_85th,
            marker: {
                enabled: false
            }
        }, {
            name: '90th Percentile',
            data: bmi_female_90th,
            marker: {
                enabled: false
            }
        }, {
            name: '95th Percentile',
            data: bmi_female_95th,
            marker: {
                enabled: false
            }
        }, {
            name: '97th Percentile',
            data: bmi_female_97th,
            marker: {
                enabled: false
            }
        }]
    });
});

function toggleBands(chart) {
    $.each(chart.xAxis, function (index, elX) {
        $.each(elX.plotLinesAndBands, function (index, el) {
            if (el.svgElem !== undefined) {
                el.svgElem[el.visible ? 'show' : 'hide']();
                el.visible = !el.visible;
            }
        });
    });
}

$('.toggle-trigger').click(function () {
    var target = $(this).attr('data-target');

    $('#' + target).slideToggle('slow');

    if ($(this).hasClass('plus')) {
        $(this).addClass('minus').removeClass('plus');
    } else {
        $(this).addClass('plus').removeClass('minus');
    }
});